package hnlg.com.cn.systemmanage.qibiemanage.junit;

import javax.annotation.Resource;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import hnlg.com.cn.model.QibieVo;
import hnlg.com.cn.systemmanage.qibiemanage.service.IQibieService;

@SpringBootTest
@RunWith(SpringRunner.class)
public class QibieServiceImplTest {
@Resource IQibieService QibieService;
	@Test
	public void testAddQibie() throws Exception {
		QibieVo vo=new QibieVo();
		vo.setName("第三期");
		QibieService.addQibie(vo);
	}

	@Test
	public void testDeleteQibie() throws Exception {
	  QibieService.deleteQibie("1");
	}

	@Test
	public void testUpdateQibie() throws Exception {
		QibieVo vo=new QibieVo();
		vo.setName("第六期");
		vo.setId("2");
		QibieService.updateQibie(vo);
	}
   @Test
   public void testQueryQibie() throws Exception{
	   QibieVo vo=new QibieVo();
	   QibieService.queryqibie(vo);
   }
   @Test
   public void testDeleteBatchQibie()throws Exception{
	   String arr[]={"11","2"};
	   boolean flag=QibieService.deletebatch(arr);
	   System.out.println("flag=="+flag);
   }
   
   
}
